<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/page_init.jsp"%>
<%
 %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title><%=CommonConfig.getString("SYSTEM_TITLE")%></title>
<script type="text/javascript" src="<%=contextPath %>/dwr/engine.js"></script>
<script type="text/javascript" src="<%=contextPath %>/dwr/util.js"></script>
<script type="text/javascript" src="<%=contextPath %>/dwr/interface/pushMessageCompont.js"></script>
<script type="text/javascript" src="<%=contextPath%>/js/console/monitor/esbDebugger.js?uuid=<%=RANDOM%>"></script>
</head>
<body onload="onPageLoad();dwr.engine.setActiveReverseAjax(true);dwr.engine.setNotifyServerOnPageUnload(true);">
<div class="main-right l">
 	 <div class="node-contant r">
      <div class="title-bt">
        <ul class="clear tab_ul" id="authTab">
          <li><a id="serviceTab" class="cur" onclick="showServiceLog()">ESB服务监控</a></li>
          <li><a id="logTab" onclick="showLog()">日志监控</a></li>
        </ul>
      </div>
      <div class="tab-content auth-tab-content" id="tabContainer">
        <div class="tab1" id="serviceTabContainer" name="treeDiv">
		    <div class="main-right-scroll treeContainer">
			<div class="right-content">
			    <div class="shearch-nav">
			      <label for="startServiceDebugger"><input type="checkbox" id="startServiceDebugger"/> 开启调试</label>
			      <font class="pl15">记录数：</font><font id="recordsCount">0</font>
			      <button class="btn-28 ml15" onclick="cleanServiceLogRecords()">清除记录</button>
			      <font class="pl15">过滤条件：</font><font id="filterText">无</font>
			      <button class="btn-28 ml15" onclick="setFilter()">设置条件</button>
			      <button class="btn-28" onclick="cleanServiceLogFilter()">清除条件</button>
			      <input class="hide" id="filter_ipAddress" name="filter_ipAddress"/>
			      <input class="hide" id="filter_serviceId" name="filter_serviceId"/>
			    </div>
			    	<table id="serviceLogTable" width="100%" border="0" cellspacing="0" cellpadding="0" class="content-table" style="table-layout:fixed;">
				  		<tr class="th-bg">
			              <th scope="col" width="300">节点</th>
			              <th scope="col" width="120">发起服务器</th>
			              <th scope="col">服务名</th>
			              <th scope="col" width="120">时间</th>
			              <th scope="col" width="120">响应时间</th>
			              <th scope="col" width="80">用户</th>
			              <th scope="col" width="200">输入报文</th>
			              <th scope="col" width="200">输出报文</th>
				  		</tr>
				  	</table>      
				 </div>  
			</div>
        </div>
        <div class="tab2 hide" id="logTabContainer" name="treeDiv">
		    <div class="main-right-scroll treeContainer">
			<div class="right-content">
			    <div class="shearch-nav">
			      <label for="startLogDebugger"><input type="checkbox" id="startLogDebugger"/> 开启调试</label>
			      <font class="pl15">记录数：</font><font id="recordsCount_log">0</font>
			      <button class="btn-28 ml15" onclick="cleanLogRecords()">清除记录</button>
			      <input type="radio" name="filter_level" value="debug"/>Debug
			      <input type="radio" name="filter_level" value="info"/>Info
			      <input type="radio" checked="checked" name="filter_level" value="warn"/>Warn
			      <input type="radio" name="filter_level" value="error"/>Error
			    </div>
			    	<table id="logTable" width="100%" border="0" cellspacing="0" cellpadding="0" class="content-table" style="table-layout:fixed;">
				  		<tr class="th-bg">
			              <th scope="col" width="300">节点</th>
			              <th scope="col" width="120">日志等级</th>
			              <th scope="col">日期</th>
			              <th scope="col" width="120">时间</th>
			              <th scope="col" width="400">日志内容</th>
			              <th scope="col" width="350">异常类</th>
				  		</tr>
				  	</table>      
				 </div>  
			</div>
        </div>
      </div>
    </div>
    
</div>
<script type="text/javascript">
	/** 首先加载 绑定UserId*/
	function onPageLoad() {
		pushMessageCompont.onPageLoad('<%=userInfo.getString("loginId") %>');
	}
</script>
</body>
</html>
